// 定义一些 HTML 元素公认的标准样式;

*, *:before, *:after {
	-webkit-box-sizing: border-box;
	-moz-box-sizing: border-box;
	box-sizing: border-box;
}

html, body {
	font-size: 100%;
	height: 100%;
	min-height: 100%;
}
html {
	-webkit-overflow-scrolling : touch;
	-webkit-tap-highlight-color : lighten($body-color, 75%);
	-webkit-text-size-adjust : 100%;
	-ms-text-size-adjust : 100%;
}
body {
	position: relative;
	margin : 0;
	padding : 0;
	background-color : $body-bg;
	font-family : $base-font;
	font-size : $base-font-size;
	line-height : 1.5;
	color : $body-color;
}

.color-inverse {
	background-color : $body-color;
	color : $body-bg;
}

@include respond-min($breakpoint-medium) {
	body {
		font-size : $tablet-base-font-size;
	}
}

@include respond-min($breakpoint-xl) {
	body {
		font-size : $desktop-base-font-size;
	}
}


//   =LINKS   ==================================================
a {
	text-decoration : none;
	color : $link-color;

	&:visited {
		color : $link-color-visited;
	}

	&:hover {
		text-decoration : underline;
		color : $link-color-hover;
	}

	&:focus {
		outline : thin dotted;
		color : $link-color-focus;
	}

	&:hover,
		&:active {
		outline : 0;
	}

	.chevron--right, .chevron--left {
		fill: $link-color;
	}
}

.link--padded {
	padding: 12px 0;
	white-space: nowrap;

	&:hover {
		text-decoration: none;
	}

}

.link--icon {
	width: 24px;
}

svg .st0 {
	stroke: #c00;
}

.link--add, .link--add:visited {
	color: $success-bg;
}
.link--delete, .link--delete:visited {
	color: $error-bg;
}

::-moz-selection {
	background-color : $light-grey;
	color : $page-color;
	text-shadow : none;
}
::selection {
	background-color : $light-grey;
	color : $page-color;
	text-shadow : none;
}

:hover:after, a:hover:before {
	opacity: 1;
}


//   =TYPE   ==================================================

p {
	margin: 0 0 1.5em;
	max-width: 36em;
	font-size: 1em;
}

small {
	font-size: .85em;
}

// headings modular scale:
h1, h2, h3, h4 {
	line-height: 1.2;
	margin: 0;
	font-family: inherit;
	color: inherit;
	text-rendering: optimizelegibility;
}
h1 {
	font-size: 2.441em;
	margin: 0.625em 0 0.375em;
	letter-spacing: -0.015em
}

h2 {
	font-size: 1.563em;
	margin-bottom: 0.5em;
}
.beta {
	font-size: 1.563em;
}
h3, .gamma {
	font-size: 1.25em;
	margin-bottom: 0.375em;
}
h4, .delta {
	font-size: 1em;
}

.micro {
	font-size: 0.875em;
}

hr {
	margin: 1.5em 0;
	border: 0;
	border-top: 1px solid #ccc;
	border-bottom: 1px solid #fff;
}

address {
	display: block;
	margin-bottom: 1em;
	line-height: 1.3;
	font-style: normal;
}
img {
	height: auto;
	border: 0;
	-ms-interpolation-mode: bicubic;
	vertical-align: middle;
}

figure {
	padding: 0; margin: 0;
}

ins {
	text-decoration: none;
}
pre {
	font-family: inherit;
	white-space: pre-wrap;
	word-wrap: break-word;
}

//   =LISTS   ==================================================
ul, ol {
	padding: 0;
	margin: 0 0 1.5em 1.5em;
}
ul ul, ul ol, ol ol, ol ul { margin-bottom: 0; }
ol { list-style: decimal; }
li {
	line-height: $base-line-height;
	margin-bottom: .5em;
}

dl { margin-bottom: 1.5em; }
dt, dd { line-height: 1.5; }
dt {
	font-weight: bold;
}
dd { margin-left: 0; }


//   =TABLES   ==================================================
table {
	max-width: 100%;
	border-collapse: collapse;
	border-spacing: 0;
	background-color: transparent;
}